import java.util.Arrays;

/**
 * Created with IntelliJ IDEA.
 * Description: 将原数组扩大二倍
 * Author:  LiuTao
 * Version: 1.0
 * Date:    2023-08-02  11:51
 */
public class Test2 {
    public static void main(String[] args) {
        int[] array = {1,3,2,4};
        transform(array);
        System.out.println(Arrays.toString(array));
    }

    public static void transform(int[] array) {
        for (int i = 0; i < array.length; i++) {
            array[i] = array[i]*2;
        }
    }
}
